package o;

import android.os.Bundle;
import android.text.TextUtils;
import com.huawei.hmf.orb.exception.ApiNotExistException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public abstract class ffl<T> implements fez {
    private static Map<String, List<fia>> ˋ = new HashMap();
    private String ˏ;
    private T ॱ;

    public abstract Class<T> ˊ();

    public abstract String ˋ();

    public static d ˏ() {
        return new d(null);
    }

    public String ˎ() {
        return this.ˏ;
    }

    public ffl(T t) {
        this.ॱ = t;
    }

    public ffl(d dVar) {
        fhz ˋ = fho.ˏ().ˋ(d.ˋ(dVar));
        if (!TextUtils.isEmpty(d.ˎ(dVar))) {
            this.ˏ = d.ˎ(dVar);
        }
        Bundle bundle = null;
        if (ˋ.ॱ() != null) {
            bundle = new Bundle();
            bundle.putBoolean("DoNotIntercept", true);
        }
        if (TextUtils.isEmpty(this.ˏ)) {
            this.ॱ = ˋ.ˊ(ˊ(), bundle);
        } else {
            this.ॱ = ˋ.ˊ(ˊ(), this.ˏ, bundle);
        }
        if (this.ॱ == null) {
            throw new ApiNotExistException();
        }
    }

    public void ˋ(T t) {
        this.ॱ = t;
    }

    public T ॱ() {
        return this.ॱ;
    }

    public Object ॱ(String str, Object... objArr) {
        throw new ApiNotExistException();
    }

    protected Object ˎ(fia o_fia, Object obj) {
        return ((fic) obj).cast(o_fia.ॱ());
    }

    public void release() {
    }
}
